.main-container {
    width: 133.33vw;
    height: 133.33vh;
    background: linear-gradient(to bottom right, #D6E8FD, #B7D4FC);
    overflow: hidden; /* 防止出现滚动条 */
    display: flex;
    flex-direction: column;
}

.button-container {
    margin: 10px 0px 10px 20px; /* 添加内边距以避免按钮紧贴边缘 */
}

.back-button {
    width: 50px; /* 设置按钮的宽度 */
    height: 50px; /* 设置按钮的高度 */
    padding: 0; /* 移除默认的内边距 */
    border-radius: 50%; /* 使按钮变成圆形 */
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.main-card {
    flex-grow: 1; /* 占据剩余的所有高度 */
    border-radius: 13px;
    margin: 00px 20px 20px 20px; /* 调整边距以避免重叠 */
    background: rgba(255, 255, 255, 0.21);
    border: 1px solid #FFFFFF;
    box-sizing: border-box; /* 确保边框和内边距包含在宽度和高度内 */
    display: flex; /* 使用 flex 布局 */
    flex-direction: column; /* 垂直排列子元素 */
    padding: 10px 20px 10px 10px; /* 添加内边距以避免子卡片紧贴边缘 */
    height: 100%;
}

.card-container {
    display: flex; /* 使用 flex 布局 */
    gap: 10px; /* 设置子卡片之间的间距 */
    flex-grow: 1; /* 占据 main-card 的全部高度 */
    height: 100%;
}

.left-card {
    flex: 0 0 50%; /* 左侧卡片占 60% 宽度 */
    height: 100%;
    background: linear-gradient( 139deg, #E2EEFE 0%, #E2EBF7 12%, #E2F2FC 63%, #E1EEFF 100%);
    box-shadow: 0px 2px 10px 1px rgba(127,183,231,0.26);
    border-radius: 13px 13px 13px 13px;
    border: 1px solid rgba(255,255,255,0.27);
    padding: 20px; /* 添加内边距 */
    box-sizing: border-box; /* 确保边框和内边距包含在宽度和高度内 */
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-list {
    flex-grow: 1;
    margin-bottom: 10px;
    height: 400px;
    /* height: calc(100% - 150px); */
    /* height: 500px; */
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.remote-message {
    flex-direction: row;
}

.local-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 10px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble {
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    background-color: #f0f2f5;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap; 
}

.local-message .bubble {
    background-color: #4496FB;
    color: white;
}
.input-area {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #F7F9FF;
    box-shadow: 0px 2px 3px 1px rgba(44,133,238,0.37);
    border-radius: 13px 13px 13px 13px;
    border: 1px solid #4496FB;
    padding: 5px;
    box-sizing: border-box;
}

.input-tools {
    position: absolute;
    right: 20px;
    gap: 10px;
    bottom: 20px;
    z-index: 1;
}

.input-tools .el-button {
    background-color: #f0f2f5;
    border-color: #dcdfe6;
    color: #606266;
}

.input-tools .el-button:hover {
    background-color: #e4e7ed;
    border-color: #c4c9d1;
    color: #409EFF;
}


.right-card {
    flex: 0 0 50%; /* 右侧卡片占 40% 宽度 */
    height: 100%;
    background: #FFFFFF;
    border-radius: 16px 16px 16px 16px;
    border: 1px solid rgba(139,186,184,0.41);
    box-sizing: border-box; /* 确保边框和内边距包含在宽度和高度内 */
    position: relative; /* 设置相对定位以便子元素绝对定位 */
    display: flex;
    flex-direction: column;
}

.text-display {
    flex-grow: 1; /* 占据剩余的所有高度 */
    height: 80vh;
    overflow-y: auto; /* 添加垂直滚动条 */
}

.button-bar {
    position: absolute; /* 绝对定位 */
    bottom: 0; /* 紧贴底部 */
    left: 0;
    right: 0;
    height: 80px; /* 设置高度 */
    background: #CFEAFF;
    /* border-top: 1px solid #4496FB; */
    border-radius: 0px 0px 16px 16px;
    display: flex;
    justify-content: space-around; /* 横向居中并分散排列 */
    align-items: center; /* 垂直居中 */
}

.pagger {
    position: absolute; /* 绝对定位 */
    bottom: 100px; /* 紧贴底部 */
    left: 0;
    right: 0;
    height: 50px; /* 设置高度 */
    background: transparent;
    display: flex;
    justify-content: space-between; /* 横向居中并分散排列 */
    align-items: center; /* 垂直居中 */
}

.opt-button {
    height:45px;
    width:45px !important;
    font-size: 20px;
    background-color: transparent;
    border: transparent;
}

.video-layer{
    position: absolute; /* 绝对定位 */
    bottom: 0; /* 紧贴底部 */
    left: 0; /* 紧贴左侧 */
    width: 80px; /* 设置宽度 */
    height: 142px; /* 设置高度 */
    background-color: #4496FB; /* 背景颜色 */
    border-radius: 8px; /* 圆角 */
    z-index: 1000;
}


.local-player {
    position: absolute; /* 绝对定位 */
    top: 40px; /* 距离顶部 0 */
    right: 40px; /* 距离左侧 0 */
    width: 181px;
    height: 324px; 
    background-color: rgba(255, 255, 255, 0.5); /* 半透明背景 */
    border-radius: 8px;
    z-index: 1000; /* 确保在最上层 */
    border: 1px solid #ccc; /* 边框 */  
    cursor: move; 
}

.question-content {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}


.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(128, 128, 128, 0.5); /* 灰色半透明背景 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-box {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loading-text {
  color: #333;
  font-size: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.fullscreen-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.zoom-layer {
    position: absolute;
    bottom: 100px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1001; /* Ensure it's above other elements */
}

.selection-rectangle {
    position: absolute;
    border: 2px dashed #333;
    background-color: rgba(0, 0, 255, 0.1);
    pointer-events: none;
    z-index: 1001;
  }

.img-preview-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #eee;
}
.chat-img {
    max-width: 300px;
    max-height: 400px;
}
.custom-icon{
    width: 32px;
    height: 32px;
}
.color-picker-container {
  position: relative;
  display: inline-block;
}

.color-picker-trigger {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.color-picker-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.color-picker-content {
  position: relative;
  z-index: 1001;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 300px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ddd;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-preview {
  margin: 16px 0;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.native-color-input {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.color-picker-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
  }


  .chart_layer {
    position: absolute;
    bottom: 90px;
    right: 10px;
    width: 360px;
    height: 360px; 
    background-color: rgba(0,0,0, 1); /* 半透明背景 */
    border-radius: 8px;
    z-index: 1000; /* 确保在最上层 */
    border: 1px solid #ccc; /* 边框 */  
    cursor: move; 
}
